package com.a16.yuejian.yuejian.service;

import com.a16.yuejian.yuejian.javabean.Question;
import com.a16.yuejian.yuejian.javabean.Success;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 55080 on 2017/10/17.
 */

public interface QuestionService {
    @GET("index.php/api/Question/allquestion")
    Call<List<Question>> allquestion(
            @Query("coachid")String coachid
    );

    @GET("index.php/api/Question/ask")
    Call<Success> ask(
            @Query("coachid")String coachid,
            @Query("userid")String userid,
            @Query("question")String question
    );
}
